<template>
 <div>
    <el-carousel direction="vertical" height="calc(100vh)" autoplay arrow="never">
      <el-carousel-item v-for="item in photos" :key="item">
         <img :src="item">
      </el-carousel-item>
    </el-carousel>
 </div>
</template>

<script>
export default {
    name:'Rotation',
    data(){
        return{
            photos:[
               require('../image/轮播2.jpg'),
               require('../image/轮播1.jpg'),
               require('../image/轮播3.jpg')
            ],
        }
    },

}
</script>

<style lang="less" scoped>
 .el-carousel__item{
    height: calc(100vh);
    overflow: hidden;
    img{
        width: 100%;
        height: 100%;
    }
  }

  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
    
</style>